/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-05-30
 * Time: 19:38
 */
public class Computer {
    private String cpu;
    private String screen;
    private static int price;

    {
        cpu="Intel";
        screen="OLED";
        System.out.println("构造代码块");
    }

    static{
        price=7599;
        System.out.println("静态代码块");
    }

    public Computer(){
        System.out.println("不带参数的构造方法");
    }
    public static void main(String[] args) {
        Computer cp=new Computer();
    }
}
